package zzj.campus_book_sharing_platform.Aigc.Service;

import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import zzj.campus_book_sharing_platform.Aigc.entity.Aigc;
import zzj.campus_book_sharing_platform.domain.dto.AiQuestion;
import zzj.campus_book_sharing_platform.uitl.ResultFormat;
import zzj.campus_book_sharing_platform.uitl.ResultUtil;

import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

public interface AigcService {
    void insert(Aigc aigc, HttpSession session);

    ResultFormat delete(Aigc aigc, HttpSession session);

    List<Aigc> selectStateByUserId(String userId, HttpSession session);

    ResultFormat selectStateByUserId(String userId);

    ResultFormat getAnswer(AiQuestion Question, HttpSession session) throws NoApiKeyException, InputRequiredException, IOException;
}
